.class public Les/rf0;
.super Les/nf0;
.source "FindKeywordsDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;
.implements Lcom/jecelyin/common/widget/dialog/a$d;


# instance fields
.field private final b:Z

.field private final c:Landroid/widget/EditText;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/widget/EditText;Z)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/nf0;-><init>(Landroid/content/Context;)V

    .line 2
    iput-boolean p3, p0, Les/rf0;->b:Z

    .line 3
    iput-object p2, p0, Les/rf0;->c:Landroid/widget/EditText;

    return-void
.end method


# virtual methods
.method protected bridge synthetic a()Lcom/jecelyin/common/widget/dialog/a$c;
    .locals 1

    .line 1
    invoke-virtual {p0}, Les/rf0;->a()Lcom/jecelyin/common/widget/dialog/c;

    move-result-object v0

    return-object v0
.end method

.method protected a()Lcom/jecelyin/common/widget/dialog/c;
    .locals 2

    .line 2
    new-instance v0, Lcom/jecelyin/common/widget/dialog/c;

    iget-object v1, p0, Les/nf0;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/jecelyin/common/widget/dialog/c;-><init>(Landroid/content/Context;)V

    return-object v0
.end method

.method public a(Lcom/jecelyin/common/widget/dialog/a;ILcom/jecelyin/common/widget/dialog/vh/AbstractDialogViewHolder;Lcom/jecelyin/common/widget/dialog/DialogListAdapter$b;)V
    .locals 0

    .line 3
    invoke-virtual {p1}, Landroid/app/Dialog;->dismiss()V

    .line 4
    iget-object p1, p0, Les/rf0;->c:Landroid/widget/EditText;

    iget-object p2, p4, Lcom/jecelyin/common/widget/dialog/DialogListAdapter$b;->b:Ljava/lang/CharSequence;

    invoke-virtual {p1, p2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public c()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/nf0;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/jecelyin/editor/v2/utils/b;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/utils/b;

    move-result-object v0

    iget-boolean v1, p0, Les/rf0;->b:Z

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/utils/b;->b(Z)Ljava/util/ArrayList;

    move-result-object v0

    .line 2
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    new-array v1, v1, [Ljava/lang/String;

    invoke-interface {v0, v1}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Ljava/lang/String;

    .line 3
    invoke-virtual {p0}, Les/rf0;->a()Lcom/jecelyin/common/widget/dialog/c;

    move-result-object v1

    .line 4
    invoke-virtual {v1, v0}, Lcom/jecelyin/common/widget/dialog/c;->a([Ljava/lang/CharSequence;)Lcom/jecelyin/common/widget/dialog/c;

    sget v0, Lcom/jecelyin/editor/v2/m;->je_clear_history:I

    .line 5
    invoke-virtual {v1, v0}, Lcom/jecelyin/common/widget/dialog/a$c;->b(I)Lcom/jecelyin/common/widget/dialog/a$c;

    .line 6
    invoke-virtual {v1, p0}, Lcom/jecelyin/common/widget/dialog/a$c;->a(Landroid/content/DialogInterface$OnClickListener;)Lcom/jecelyin/common/widget/dialog/a$c;

    sget v0, Lcom/jecelyin/editor/v2/m;->je_close:I

    .line 7
    invoke-virtual {v1, v0}, Lcom/jecelyin/common/widget/dialog/a$c;->d(I)Lcom/jecelyin/common/widget/dialog/a$c;

    iget-boolean v0, p0, Les/rf0;->b:Z

    if-eqz v0, :cond_0

    sget v0, Lcom/jecelyin/editor/v2/m;->je_replace_log:I

    goto :goto_0

    :cond_0
    sget v0, Lcom/jecelyin/editor/v2/m;->je_find_log:I

    .line 8
    :goto_0
    invoke-virtual {v1, v0}, Lcom/jecelyin/common/widget/dialog/a$c;->f(I)Lcom/jecelyin/common/widget/dialog/a$c;

    .line 9
    invoke-virtual {v1, p0}, Lcom/jecelyin/common/widget/dialog/a$c;->a(Lcom/jecelyin/common/widget/dialog/a$d;)Lcom/jecelyin/common/widget/dialog/a$c;

    .line 10
    invoke-virtual {v1}, Lcom/jecelyin/common/widget/dialog/a$c;->c()Lcom/jecelyin/common/widget/dialog/a;

    move-result-object v0

    .line 11
    invoke-virtual {p0, v0}, Les/nf0;->a(Lcom/jecelyin/common/widget/dialog/a;)V

    return-void
.end method

.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 1
    .param p1    # Landroid/content/DialogInterface;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # I
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    const/4 v0, -0x2

    if-eq p2, v0, :cond_0

    goto :goto_0

    .line 1
    :cond_0
    iget-object p2, p0, Les/nf0;->a:Landroid/content/Context;

    invoke-static {p2}, Lcom/jecelyin/editor/v2/utils/b;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/utils/b;

    move-result-object p2

    iget-boolean v0, p0, Les/rf0;->b:Z

    invoke-virtual {p2, v0}, Lcom/jecelyin/editor/v2/utils/b;->a(Z)V

    .line 2
    :goto_0
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void
.end method
